hwdef: Add JFB200 of JAE flight controllers#32786
Conversation
|
|
Hi @n-ito2222, I suspect you're working on the PR and it's not quite done yet but I just want to point out that we don't accept merge commits so it would be good to rebase this on master to remove the one that has appeared. |
51a5823 to
1222179
Compare
|
HI @rmackay9,
I'm sorry. |
|
Hi @rmackay9, @peterbarker , Thank you for your cooperation. |
|
|
||
| ## MCU class and specific type | ||
| MCU STM32H7xx STM32H755xx | ||
| define CORE_CM7 |
There was a problem hiding this comment.
don't think this does anything - remove
There was a problem hiding this comment.
Hi @andyp1per,
Excuse me.
If I remove define CORE-CM7, the build fails.
Are there any other settings I need to configure?
There was a problem hiding this comment.
that should absolutely not be the case
There was a problem hiding this comment.
Removing "define CORE_CM7" will cause an error at the following code :
https://raw.githubusercontent.com/ArduPilot/ChibiOS/73f152d383775897584c60e3b597cf42a1dd74cd/os/common/ext/ST/STM32H7xx/stm32h755xx.h#224-#245
#ifdef CORE_CM4
#define __CM4_REV 0x0001U /*!< Cortex-M4 revision r0p1 */
:
#else /* CORE_CM7 */
#ifdef CORE_CM7
#define __CM7_REV 0x0100U /*!< Cortex-M7 revision r1p0 */
:
#else /* UNKNOWN_CORE */
#error Please #define CORE_CM4 or CORE_CM7
#endif /* CORE_CM7 */
#endif /* CORE_CM4 *
There was a problem hiding this comment.
ok I see, its specific to H755 - its the wrong way to fix it but I see everyone else has done the same so just keep it I think
| PA14 JTCK-SWCLK SWD | ||
|
|
||
| ## telem1 | ||
| PE8 UART7_TX UART7 SPEED_VERYLOW |
|
@andyp1per, thank you very much for the review! |
There was a problem hiding this comment.
- I need images before I can review....see wiki for README requirements https://ardupilot.org/dev/docs/readme_file.html#readme-file
- everything in the defaults.param file should be removed...rssi params should not be set...user should set..IMU mask is default,,,,serial protocols in hwdef..that bd voltage min is too low...everything should be able to take 4.75V as a min in a proper design
- commit structure incorrect
|
Hi @Hwurzburg, Thanks.
I will modify Readme.md and delete defaults.param. I'm sorry. |
|
Hi @n-ito2222, Re the "commit structure" issue, I think the problem is that the bootloaders should be in a separate commit and that commit title should be prefixed with "Tools:". So it should be something like, "Tools: add JFB200 bootloaders" |
|
HI @rmackay9, Thanks.
I understand. |
|
Hi @Hwurzburg,
I'm sorry, I commented that I would delete defaults.param, but I would like to keep "BRD_VBUS_MIN 4.75". Thank you for your cooperation. |
|
Hi @n-ito2222, Re the bootloaders, no need to put them into a separate PR. They just need to be in separate commits within this PR. In fact, we won't merge this unless those bootloader changes are split into a separate commit. If you're not sure how to do that using git I could do it for you. |
|
Hi @rmackay9, Thanks. |
1222179 to
f79c5e0
Compare
|
Hi @n-ito2222, You've probably seen them but there seem to be some formatting issues. libraries/AP_HAL_ChibiOS/hwdef/JFB200/README.md:8 MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Features"] |
f79c5e0 to
8459a8e
Compare
|
@Hwurzburg, the README has been added with images @andyp1per no pressure but if you get a chance to re-review that would be great, txs! |
Hwurzburg
left a comment
There was a problem hiding this comment.
Preliminary review....cant fully review until next week due to home move:
-which UARTs have DMA should be noted
-PWM outputs noted as bi-dir buffered...you mean have BDShot capability...if so, this wording should be used in readme
- CAN ports should be enabled in defaults.parm
- why are PWM 1-8 being prevented from being used as GPIOs??
- pinouts for UARTs should have the UART number included in the RX/TX pin names in the pinout lists (not serial port number...that translation is shown in the UART table section)
- UART table can show connector name, BUT the default protocol should be shown also....ie TELEM1 is MAVLink2 (unless its obvious, like GPS)
8459a8e to
166f35a
Compare
|
Hi, @Hwurzburg, Thank you for the review. We have decided that our JFB200 does not support bidirectional communication (BI-DIR). |
|
Automated hwdef review ( PR 32786 · base Build
Must-fix
Should-fix
Notes
Generated by Claude via |
166f35a to
9c726ec
Compare
|
Hi @andyp1per, Thank you for the review. I have applied the Should-fix. I have also applied some of the Notes. I don't know how to remove "define CORE_CM7" from hwdef.dat. Simply removing "define CORE_CM7" results in a build error. |
| - SERIAL4 -> USART1 (GPS1, DMA-enabled) | ||
| - SERIAL5 -> USART2 (GPS2, DMA-enabled) | ||
| - SERIAL6 -> UART8 (RCIN, DMA-enabled) | ||
| - SERIAL7 -> USART6 (S.OUT, DMA-enabled) |
There was a problem hiding this comment.
| - SERIAL7 -> USART6 (S.OUT, DMA-enabled) | |
| - SERIAL7 -> USART6 (SBUSOUT, DMA-enabled) |
There was a problem hiding this comment.
Hi @Hwurzburg ,
Thanks,
SBUS is a registered trademark of Futaba Corporation.
To avoid unauthorized use, we have changed SBUSOUT to SOUT.
There was a problem hiding this comment.
A trademark search shows that "SBUS" or "SBUSOUT" is not a registered trademark in the USPTO, WIPO, EUIPO. or JPO databases....SBUS is a freely used term in RC documentation..Futaba does trademark other terms like FASST, etc.
There was a problem hiding this comment.
|
|
||
| The board has two dedicated power monitor ports on 8 pin connectors. | ||
| The correct battery setting parameters are dependent on the type of power brick which is connected. | ||
| Recomended input voltage is 4.9 to 5.5 volt. |
There was a problem hiding this comment.
you set defaults in hwdef for both monitors....list them here...special not about scales being set to "1" which need to be set by user (usually better to allow the defaults to be used instead of "1")
There was a problem hiding this comment.
I modified hwdef.
There was a problem hiding this comment.
hwdef still has set and enabled two analog monitors with some defaults as "1"...my original comment still applies
There was a problem hiding this comment.
Hi, @Hwurzburg.
I apologize for not understanding the meaning of your comment.
I added a list of default parameters for the battery monitor.
daaed99 to
1d58034
Compare
|
Hi @Hwurzburg Thanks for the review. |
|
|
||
| The board has two dedicated power monitor ports on 8 pin connectors. | ||
| The correct battery setting parameters are dependent on the type of power brick which is connected. | ||
| Recomended input voltage is 4.9 to 5.5 volt. |
There was a problem hiding this comment.
hwdef still has set and enabled two analog monitors with some defaults as "1"...my original comment still applies
525c21c to
245dd53
Compare
|
Hi @Hwurzburg Thank you for your review. |
Summary
Add hwdef JFB200 for a JAE new flight controller.
Classification & Testing (check all that apply and add your own)